<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS 菜单</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .menu-container{
            width: 1000px;
            height: 40px;
            border: 1px solid #eee;
            margin: 100px auto;
        }
        .menu-left,.menu-right{
            height: 100%;
            line-height: 40px;
        }
        .menu-left{
            width: 80%;
            float: left;
        }
        .menu-right{
            width: 80px;
            float: right;
        }
        .menu-container::after{
            content: '';
            clear: both;
        }
        a{
            text-decoration: none;
            color: #08f;
            padding: 0 15px;
        }

    </style>
</head>
<body>
    <div class="menu-container">
        <div class="menu-left">
            <a href="">新闻</a>
            <a href="">hao123</a>
            <a href="">地图</a>
            <a href="">直播</a>
        </div>
        <div class="menu-right">
            <a href="">更多</a>
        </div>
    </div>
</body>
</html>